students = [
    {"name":"tom", "age": 18},
    {"name":"lucy", "age":19}
]


find_name = input("请输入名字进行查找：")
for each_stu in students:
    if each_stu["name"] == find_name:
        print("找到了 %s" % find_name)
        break
else:
    print("抱歉没找到 %s" % find_name)
print("循环结束")